<template>
  <div>
    <button @click="handleClick">发送</button>
    <!-- <button @click="handleSubmit">ceshi</button> -->
  </div>
</template>

<script>
import axios from "@/utils/api.request";
import { mapActions } from "vuex";
export default {
  name: "test",
  data() {
    return {
      a: "1",
      b: "2"
    };
  },
  methods: {
    ...mapActions(["handleLogin"]),
    handleClick() {
      axios
        .request({
          url: "/api/cart/getGoodsList",
          method: "post",
          data: {
            p: 1
          }
        })
        .then(res => {
          console.log(res);
        })
        .catch(err => {});
    }
  }
};
</script>

<style scoped>
</style>
